package wineshop.utils;

public class ConvertVariant {

	public static String ArrayToString(String[] List) {

		StringBuffer sb = new StringBuffer();
		for (String list : List) {
			sb.append(list).append("|");
		}
		if (sb.length() > 0) {
			sb.deleteCharAt(sb.length() - 1);
		}

		return sb.toString();
	}

	public static String[] StringToArray(String Str) {

		String str = Str;
		String[] newStr = str.split("\\|");

		return newStr;
	}

}
